import React, { useEffect } from 'react';
import styles from './index.less';
import { Button } from 'antd';
import axios from 'axios'

export default () => {
  useEffect(() => {
    console.log($);
    axios.get('/api/index').then(res => {
      console.log(res);
    }).catch(e => {
      console.log(e);
    })
  }, [])

  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      <Button type="primary">button</Button>
    </div>
  );
}
